/*
 * IButtonService.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.app.button.service;

import java.util.List;

import org.geek.core.mybatis.domain.Button;
import org.geek.core.mybatis.domain.Criteria;

/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
public interface IButtonService {

	int countButtonByCriteria(Criteria criteria);
	
	List<Button> getButtonByCriteria(Criteria criteria);
	
	int modButton(Button Button);
	
	int addButton(Button button);
	
	int delButtonByButtonId(int buttonId);
	
	/**
	 * 得到该用户在该模块所拥有的按扭
	 * @param moduleId
	 * @param userId
	 * @return
	 */
	List<Button> getButtonByAuth(int moduleId,int userId);
}
